#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""

@author ：chenzf
@date ：2024/4/22 下午5:34 
"""
import  json
json_data = [{"name":"chenzf","age":18},{"name":"xiaoming","age":20}]
# 将python对象转换为json字符串
data  = json.dumps(json_data,ensure_ascii=False)
print(data)
print(type(data))
# 将json对象转换为python对象
data = json.loads(data)
print(data)
print(type(data))

